﻿using System;
using Game1942.Library.Background;
using Game1942.Library.Background.Bodies;
using Game1942.Library.FlightPlans;

namespace Game1942.Library.Weapons
{
    public class Laser : Ammo
    {
        public Laser(bool playerTeam): base(playerTeam)
        {
            manageTurn.SetSpeed(Constants.Laser.Speed);
            damage = Constants.Laser.Damage;
            body = new Square(Constants.Laser.Width, Constants.Laser.Height);
            position.SetBody(body);
            flightPlan.Speed = Constants.Laser.Speed;
        }

        public Laser(Point aPosition, bool playerTeam): this(playerTeam)
        {
            base.SetPosition(aPosition);
        }
    }
}
